package org.jet.emall.prod.po;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单详情表
 * </p>
 *
 * @author xiaozai
 * @since 2020-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_order_item_detail")
@ApiModel(value="OrderItemDetail对象", description="订单详情表")
public class OrderItemDetail implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "订单详情ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @ApiModelProperty(value = "商品SKU的ID")
    private Long skuId;

    @ApiModelProperty(value = "购买数量")
    private Integer count;

    @ApiModelProperty(value = "购买单价")
    private Long price;

    @ApiModelProperty(value = "平均成本价格")
    private Long averageCost;

    @ApiModelProperty(value = "商品重量(克)")
    private Integer weight;

    @ApiModelProperty(value = "优惠分摊金额")
    private Long feeMoney;

    @ApiModelProperty(value = "仓库ID")
    private Integer warehouseId;

    @TableLogic
    @ApiModelProperty(value = "逻辑删除: 1-已删除, 0-未删除")
    private Byte deleted;

    @ApiModelProperty(value = "最后修改时间")
    private LocalDateTime modifiedTime;


}
